// 排行版接口
import request from "./http";

// 获取排行版歌单
export function getToplist(){
    return request({
        url:"/toplist",
        method:"get",
    })
}

// 获取歌单详情
// /playlist/detail?id=24381616
export function getPlaylistDetail(params){
    return request({
        url:"/playlist/detail",
        method:"get",
        params
    })
}
//收藏歌单
export function getPlaylistSubscribe(params){
    return request({
        url:"/playlist/subscribe",
        method:"get",
        params
    })
}
//对歌单添加或删除歌曲
export function getPlaylistTracks(params){
    return request({
        url:"/playlist/tracks",
        method:"get",
        params
    })
}